home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.util;
-
- import java.util.Enumeration;
-
- public class BasicEnumerator implements Enumeration {
- Object onDeck;
- boolean init;
-
- private void init() {
- if (!this.init) {
- this.onDeck = this.getNext();
- this.init = true;
- }
-
- }
-
- public boolean hasMoreElements() {
- this.init();
- return this.onDeck != null;
- }
-
- public Object nextElement() {
- this.init();
- Object var1 = this.onDeck;
- this.onDeck = this.getNext();
- return var1;
- }
-
- protected Object getNext() {
- return null;
- }
- }
-